import yagmail

def e_maile(file):
    em = yagmail.SMTP(user='zzh2834326498@qq.com',password='rbtbgahnvdwaddbf',
                      host='smtp.qq.com',port='465')
    em.send(to='zzh2834326498@qq.com',subject='a3mall',contents='请查收',attachments=file)
    return em